/*!
    \copyright  Copyright (c) 2023 Qualcomm Technologies International, Ltd.
                All Rights Reserved.
                Qualcomm Technologies International, Ltd. Confidential and Proprietary.
    \version    
    \file       google_finder.h
    \defgroup   google_finder Google Finder 
    @{
    \ingroup    bt_domain
    \brief      Header file for the component handling Google Finder Core functionality.
*/

#ifndef GOOGLE_FINDER_H_
#define GOOGLE_FINDER_H_

#ifdef INCLUDE_GOOGLE_FINDER

#ifndef INCLUDE_FAST_PAIR
#error "INCLUDE_GOOGLE_FINDER requires INCLUDE_FAST_PAIR"
#endif

#include <task_list.h>

/*! \brief Google Finder Initialization.
 */
bool GoogleFinder_Init(Task init_task);

/*! \brief Check if the finder location tracking is disabled or not.
    \param void
    \return TRUE if location tracking is disabled, FALSE otherwise.
 */
bool GoogleFinder_IsLocationTrackingDisabled(void);

/*! \brief Run beacon time counter on peer earbud once EIK is written to primary earbud.

    \param void 
    \return void
*/
void GoogleFinder_SyncBeaconTime(void);

/*! \brief Handler function to sync unwanted tracking protection mode to peer earbud.

    \param sync data
    \return void
*/
void GoogleFinder_SyncUnwantedTracking(bool is_unwanted_tracking_prot_mode);

/*! \brief Handler function to get the unwanted tracking protection mode.

    \param void
    \return bool TRUE if unwanted tracking protection mode is set, FALSE otherwise.
*/
bool GoogleFinder_IsUnwantedTrackingProtModeEnabled(void);

/*! \brief Public API to send the currently advertised EID and clock value to the connected seekers.
    \param seeker_number Seeker Index to send the data to.
    \return None
 */
void GoogleFinder_SendEIDAndClockValue(uint8 seeker_number);

/*! \brief Register the Google Finder with the Device Database Serialiser
           Called early in the Application start up to register the Google Finder with the
           Device Database Serialiser so that the service can use the device NVRAM.
    \param void
    \return void
*/
void GoogleFinder_RegisterPersistentDeviceDataUser(void);

#endif /* INCLUDE_GOOGLE_FINDER */

#endif /* GOOGLE_FINDER_H_ */
/*! @} */